package org.example.lotterysystem.common.domain.dto;

import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serializable;

@Data
public class UserRegisterDTO implements Serializable {  //可被序列化
    @NotBlank(message = "姓名不能为空！")
    private String name;

    @NotBlank(message = "邮箱不能为空！")
    private String mail;

    @NotBlank(message = "电话不能为空！")
    private String phoneNumber;

    private String password;

    @NotBlank(message = "身份不能为空！")
    private String identity;    //身份信息
}
